//
//  WelcomeViewController.m
//  UI0511HomeworkTwo
//
//  Created by dllo on 16/5/11.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "WelcomeViewController.h"

@interface WelcomeViewController ()

@end

@implementation WelcomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self creatWuMing];
    
    
    
}

- (void)creatWuMing{
    UILabel *laber1 = [[UILabel alloc] initWithFrame:CGRectMake(100, 100, 200, 50)];
    laber1.text = @"Welcome~";
    [self.view addSubview:laber1];
    [laber1 release];
    
    
    UIButton *butt = [[UIButton alloc] initWithFrame:CGRectMake(100, 200, 80, 80)];
    [self.view addSubview:butt];
    [butt release];
    
    [butt setTitle:@"返回" forState:UIControlStateNormal];
    butt.backgroundColor = [UIColor cyanColor];
    
    [butt addTarget:self action:@selector(handleOne) forControlEvents:UIControlEventTouchUpInside];
    
  

}

- (void)handleOne{

    [self.navigationController popToViewController:self.navigationController.viewControllers[0] animated:YES];
    


}






@end
